﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

namespace Ccit.OA.NewsCenter
{
    /// <summary>
    /// define news message object (NEWS_A3)
    /// </summary>
    public class MsNews
    {
        #region 私有属性

        private string _newsId;
        private string _columnNo;
        private string _newsTitle;
        private string _topFlag;
        private string _picFlag;
        //private string _picId;
        private string _commentFlag;
        private string _commentCount;
        private string _contentFormat;
        private string _connectAddress;
        private string _newsContent;
        private string _newsStatus;
        private string _newsType;
        private string _issueUserId;
        private string _issueDate;
        private string _viewCount;

        private List<MsViewInfo> _lstViewInfo;

        #endregion

        #region 公开属性

        /// <summary>
        /// 信息ID
        /// </summary>
        public string NewsId { set { _newsId = value; } get { return ((!string.IsNullOrEmpty(_newsId)) ? _newsId : ""); } }

        /// <summary>
        /// 栏目序号
        /// </summary>
        public string ColumnNo { set { _columnNo = value; } get { return ((!string.IsNullOrEmpty(_columnNo)) ? _columnNo : ""); } }

        /// <summary>
        /// 信息标题
        /// </summary>
        public string NewsTitle { set { _newsTitle = value; } get { return ((!string.IsNullOrEmpty(_newsTitle)) ? _newsTitle : ""); } }

        /// <summary>
        /// 置顶标志
        /// </summary>
        public string TopFlag { set { _topFlag = value; } get { return ((!string.IsNullOrEmpty(_topFlag)) ? _topFlag : ""); } }

        /// <summary>
        /// 图片标志
        /// </summary>
        public string PicFlag { set { _picFlag = value; } get { return ((!string.IsNullOrEmpty(_picFlag)) ? _picFlag : ""); } }

        /// <summary>
        /// 图片ID
        /// </summary>
        //public string PicId { set { _picId = value; } get { return ((!string.IsNullOrEmpty(_picId)) ? _picId : ""); } }

        /// <summary>
        /// 评论标志
        /// </summary>
        public string CommentFlag { set { _commentFlag = value; } get { return ((!string.IsNullOrEmpty(_commentFlag)) ? _commentFlag : ""); } }

        /// <summary>
        /// 评论数
        /// </summary>
        public string CommentCount { set { _commentCount = value; } get { return ((!string.IsNullOrEmpty(_commentCount)) ? _commentCount : ""); } }

        /// <summary>
        /// 内容格式
        /// </summary>
        public string ContentFormat { set { _contentFormat = value; } get { return ((!string.IsNullOrEmpty(_contentFormat)) ? _contentFormat : ""); } }

        /// <summary>
        /// 连接地址
        /// </summary>
        public string ConnectAddress { set { _connectAddress = value; } get { return ((!string.IsNullOrEmpty(_connectAddress)) ? _connectAddress : ""); } }

        /// <summary>
        /// 信息内容
        /// </summary>
        public string NewsContent { set { _newsContent = value; } get { return ((!string.IsNullOrEmpty(_newsContent)) ? _newsContent : ""); } }

        /// <summary>
        /// 信息状态
        /// </summary>
        public string NewsStatus { set { _newsStatus = value; } get { return ((!string.IsNullOrEmpty(_newsStatus)) ? _newsStatus : ""); } }

        /// <summary>
        /// 信息类型
        /// </summary>
        public string NewsType { set { _newsType = value; } get { return ((!string.IsNullOrEmpty(_newsType)) ? _newsType : ""); } }

        /// <summary>
        /// 信息人
        /// </summary>
        public string IssueUserId { set { _issueUserId = value; } get { return ((!string.IsNullOrEmpty(_issueUserId)) ? _issueUserId : ""); } }

        /// <summary>
        /// 信息发布时间
        /// </summary>
        public string IssueDate { set { _issueDate = value; } get { return ((!string.IsNullOrEmpty(_issueDate)) ? _issueDate : ""); } }

        /// <summary>
        /// 阅读人数
        /// </summary>
        public string ViewCount { set { _viewCount = value; } get { return ((!string.IsNullOrEmpty(_viewCount)) ? _viewCount : ""); } }

        /// <summary>
        /// 浏览记录
        /// </summary>
        public List<MsViewInfo> lstViewInfo { set { _lstViewInfo = value; } get { return _lstViewInfo; } }

        #endregion

        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsNews() { }
    }
}
